package com.dragon.modules.yuegou.entity.merchant;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.merchant.MerchantDeliveryType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商户配送信息实体类<br>
 * 对应的表为：mer_merchant_delivery<br>
 * 
 * @author pbuilder generated
 * @date 2023-08-07 11:13:58
 * @company sgy
 * @version 2.0
 */
@TableName("mer_merchant_delivery")
@ApiModel(description = "商户配送信息")
public class MerchantDeliveryEntity {

	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 配送商户ID */
	@ApiModelProperty("配送商户ID")
	protected String daMerchantId;

    /** 配送门店ID */
	@ApiModelProperty("配送门店ID")
	protected String daShopId;

    /** [枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA */
	@ApiModelProperty("[枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA")
	protected MerchantDeliveryType type;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

    /** 运费 */
	@ApiModelProperty("运费")
	protected BigDecimal freight;

	/**
	 * 构造一个空商户配送信息实体对象
	 */
	public MerchantDeliveryEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商户配送信息实体对象
	 * 
	 * @param other 其它对象
	 */
	public MerchantDeliveryEntity(MerchantDeliveryEntity other){
		super();
     	this.merchantId = other.merchantId;
     	this.daMerchantId = other.daMerchantId;
     	this.daShopId = other.daShopId;
     	this.type = other.type;
     	this.createdTime = other.createdTime;
     	this.freight = other.freight;
	}


	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取配送商户ID
	 * 
	 * @return daMerchantId 配送商户ID
	 */
	public String getDaMerchantId() {
		return daMerchantId;
	}
  	
	/**
	 * 设置配送商户ID
	 * 
	 * @param daMerchantId 配送商户ID
	 */
	public void setDaMerchantId(String daMerchantId) {
		this.daMerchantId = daMerchantId;
	}

	/**
	 * 获取配送门店ID
	 * 
	 * @return daShopId 配送门店ID
	 */
	public String getDaShopId() {
		return daShopId;
	}
  	
	/**
	 * 设置配送门店ID
	 * 
	 * @param daShopId 配送门店ID
	 */
	public void setDaShopId(String daShopId) {
		this.daShopId = daShopId;
	}

	/**
	 * 获取[枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA
	 * 
	 * @return type [枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA
	 */
	public MerchantDeliveryType getType() {
		return type;
	}
  	
	/**
	 * 设置[枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA
	 * 
	 * @param type [枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA
	 */
	public void setType(MerchantDeliveryType type) {
		this.type = type;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取运费
	 * 
	 * @return freight 运费
	 */
	public BigDecimal getFreight() {
		return freight;
	}
  	
	/**
	 * 设置运费
	 * 
	 * @param freight 运费
	 */
	public void setFreight(BigDecimal freight) {
		this.freight = freight;
	}

    public String toString() {
		return new StringBuilder().append("MerchantDeliveryEntity{").
			append("merchantId=").append(merchantId).
			append(",daMerchantId=").append(daMerchantId).
			append(",daShopId=").append(daShopId).
			append(",type=").append(type).
			append(",createdTime=").append(createdTime).
			append(",freight=").append(freight).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public MerchantDeliveryEntity copy() {
		return new MerchantDeliveryEntity(this);
	}

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 配送商户ID */
	public static final String COL_DA_MERCHANT_ID = "da_merchant_id";

    /** 配送门店ID */
	public static final String COL_DA_SHOP_ID = "da_shop_id";

    /** [枚举]配送类型：0-自主配送-AUTONOMY、1-达达配送-DADA */
	public static final String COL_TYPE = "type";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";

    /** 运费 */
	public static final String COL_FREIGHT = "freight";
}
